package land;

import Vo.MedicalPay;
import Vo.WuLiu;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import page.PageBean;
import util.JsonResult;

import java.util.List;

@FeignClient
@LoadBalancerClient
public interface WuLiuInterface {

    @RequestMapping("/wuliu/getAll")
    List<WuLiu> queryAll(@RequestBody PageBean pageBean);

    @RequestMapping("/wuliu/queryById")
    boolean queryByLandId(@RequestBody WuLiu wuLiu);

    @RequestMapping("/wuliu/insertMedicPay")
    boolean addWuliu(@RequestBody WuLiu wuLiu);

    @RequestMapping("/wuliu/deleteById")
    boolean deleteById(@RequestBody WuLiu wuLiu);

    @RequestMapping("/wuliu/getByname")
    public JsonResult<List<WuLiu>> getByName(String name);
}
